package com.zy.cat.entity.dev;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @info 9趣猫用户注册记录信息
 * @author Link
 * @date 2019-07-04 08:58
 */
@Entity
@Table(name = "zy_cat_user_register_history", indexes = {
		@Index(name = "pid", columnList = "pid"),
		@Index(name = "imei", columnList = "imei"),
		@Index(name = "imsi", columnList = "imsi"),
		@Index(name = "vscode", columnList = "vscode"),
		@Index(name = "rtype", columnList = "rtype"),
		@Index(name = "ctime", columnList = "ctime") })
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("9趣猫用户注册记录信息")
public class CatDevRegisterInfo {

	@Id
	@Column(columnDefinition = "VARCHAR(32) NOT NULL COMMENT '开发者ID'")
	@ApiModelProperty(value = "开发者ID", example = "8510241024543843")
	private String pid;
	
	@Column(columnDefinition = "VARCHAR(30) DEFAULT '-' COMMENT '手机品牌'")
	@ApiModelProperty(value = "手机品牌", example = "Honer")
	private String brand;
	
	@Column(columnDefinition = "VARCHAR(32) DEFAULT '-' COMMENT '手机品牌型号'")
	@ApiModelProperty(value = "手机品牌型号", example = "HSF-001")
	private String model;
	
	@Column(columnDefinition = "VARCHAR(20) DEFAULT '-' COMMENT 'APP版本号'")
	@ApiModelProperty(value = "APP版本号", example = "1001")
	private String vscode;
	
	@Column(columnDefinition = "VARCHAR(50) DEFAULT '-' COMMENT 'APP友盟渠道ID'")
	@ApiModelProperty(value = "APP友盟渠道ID", example = "1001")
	private String cid;
	
	@Column(columnDefinition = "VARCHAR(50) DEFAULT '-' COMMENT '机IMEI,IOS:IDFA'")
	@ApiModelProperty(value = "手机IMEI,IOS:IDFA", example = "1001")
	private String imei;
	
	@Column(columnDefinition = "VARCHAR(50) DEFAULT '-' COMMENT '手机IMSI'")
	@ApiModelProperty(value = "手机IMSI", example = "1001")
	private String imsi;
	
	@Column(columnDefinition = "VARCHAR(20) DEFAULT '-1' COMMENT '机设备类型(0.安卓、1.IOS)'")
	@ApiModelProperty(value = "手机设备类型(0.安卓、1.IOS)", example = "1001")
	private int rtype;
	
	@Column(columnDefinition = "VARCHAR(20) DEFAULT '-'  COMMENT '创建时间'")
	@ApiModelProperty(value = "创建时间", example = "2019-02-22 12:56:56")
	private String ctime;
	
	@Column(columnDefinition = "VARCHAR(200) DEFAULT '-' COMMENT '备注'")
	@ApiModelProperty(value = "备注", example = "备注")
	private String info = "-";
}
